{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "943999f2",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "722ec5d0",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "   id  f1  f2  f3  f4\n",
      "0   1   1   2   3   4\n",
      "   id  f1  f2  f3  f4\n",
      "0   2   5   6   7   8\n",
      "    f1  f2  f3  f4\n",
      "id                \n",
      "1    1   2   3   4\n",
      "Empty DataFrame\n",
      "Columns: [2, 5, 6, 7, 8]\n",
      "Index: []\n"
     ]
    }
   ],
   "source": [
    "df1 = pd.read_csv('./data/chapter9/data1.csv')\n",
    "print(df1)\n",
    "\n",
    "df2 = pd.read_csv('./data/chapter9/data2.csv', names=['id', 'f1', 'f2', 'f3', 'f4'])\n",
    "print(df2)\n",
    "\n",
    "df3 = pd.read_csv('./data/chapter9/data1.csv', index_col='id')\n",
    "print(df3)\n",
    "\n",
    "df4 = pd.read_csv('./data/chapter9/data2.csv', skiprows=[1, 3])\n",
    "print(df4)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "79758f57",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
